﻿using System;
using MessageTypeDescriber.Xml;
using NUnit.Framework;

namespace MessageTypeDescriber.Tests.SignatureTests
{
    [TestFixture]
    class FieldSignature
    {
        [Test]
        public void can_generate_signature_properly()
        {
            TypeFullDescription typeFullDescription = new TypeFullDescription(typeof(FakeClassForSignatureTests));

            const string expected = "List<Dictionary<List<Int32>, IList<Double>>> PublicFieldName";

            String observed = typeFullDescription.Elements[6].Signature;

            Assert.AreEqual(expected,observed);

        }
    }
}